package com.kitty.listener.event;

import com.kitty.game.role.model.Role;
import com.kitty.listener.BasePlayerEvent;
import com.kitty.listener.EventType;
import lombok.Getter;

/***
 * 进入地图事件
 */
@Getter
public class EnterMapEvent extends BasePlayerEvent {
    private Role role;
    private int oldMapId;
    public EnterMapEvent(EventType evtType,Role role) {
        super(evtType, role);
        this.role=role;
    }

    public EnterMapEvent(EventType evtType,Role role,int oldMapId) {
        super(evtType, role);
        this.role=role;
        this.oldMapId=oldMapId;
    }
}
